<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>只有管理员才能查看的日志</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
        .d{
            display: flex;
            align-content: center;
            justify-content: center;
        }
        .a:hover
        {
            background-color:black;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <ul class="breadcrumb">
                    <%--显示做得好的名称的那一夜--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/logs">日志</a> <span class="divider">/</span>
                    </li>
                    <%--推到index,销毁session--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/loginout">注销</a> <span class="divider">/</span>
                    </li>
                </ul>
                <h3 class="text-center text-success ">
                    ${msg}
                    虽然你是管理员，但你的权限就是就只是看日志。如果你想答题的话，就登陆用户账户。
                </h3>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success" style="color: black;: ">
                    最新30条的操作日志
                </h3>
                <h3 class="text-center text-success">
                    ${msg}
                </h3>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>日志编号</th>
                    <th>操作类型</th>
                    <th>操作日期</th>
                    <th>操作主体</th>
                    <th>做做内容</th>
                    <%--<th>备注</th>--%>
                </tr>
                </thead>
                <tbody>
                    <c:forEach var="logs" items="${requestScope.get('llist')}">
                        <tr>
                            <td>${logs.getLID()}</td>
                            <td>${logs.getLOGMODEL()}</td>
                            <td>${logs.getLOGDATE()}</td>
                            <td>${logs.getLOGUSER()}</td>
                            <td>${logs.getLOGCONTENT()}</td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>